package com.thinkgem.jeesite.test;

public class ThreadDemo {
	public static void main(String[] args) {
		SubThread st = new SubThread();
		st.setName("run thread");
		st.start();		
		System.out.println("run thread name ...."+st.getName());
		for (int i=0 ; i<50 ;i++) {
			System.out.println("main ..."+i);
		}
		//Thread.currentThread().setName("main thread");
		System.out.println("main thread name ...."+Thread.currentThread().getName());
	}
}
